import request from '@/utils/request'

// 出差审批列表
export function businessTripApprovalList(data) {
  return request({
    url: '/system/approval/list',
    method: 'post',
    data
  })
}

// 新增出差审批
export function businessTripApprovalAdd(data) {
  return request({
    url: '/system/approval/add',
    method: 'post',
    data: data
  })
}

// 查看出差审批
export function businessTripApprovalGet(id) {
  return request({
    url: '/system/approval/' + id,
    method: 'get'
  })
}

// 修改出差审批
export function businessTripApprovalEdit(data) {
  return request({
    url: '/system/approval/update',
    method: 'post',
    data: data
  })
}

// 删除出差审批
export function businessTripApprovalDel(id) {
  return request({
    url: '/system/approval/' + id,
    method: 'delete'
  })
}

// 提交出差审批
export function businessTripApprovalSubmit(data) {
  return request({
    url: '/system/approval/submit',
    method: 'post',
    data: data
  })
}